import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';

import { MemberService } from './member.service';
import { MemberRoutes } from './member.routes';

import { MemberMainComponent } from './member-main/member-main.component';
import { LoginComponent } from './login/login.component';
import { RegistComponent } from './regist/regist.component';
import { ProductComponent } from './product/product.component';
import { CreditComponent } from './credit/credit.component';
import { ProductDetailsComponent } from './product-details/product-details.component';
import { ClauseComponent } from './clause/clause.component';
import { RoleComponent } from './role/role.component';
import { ShoumingComponent } from './shouming/shouming.component';


@NgModule({
  declarations: [
    MemberMainComponent,
    LoginComponent,
    RegistComponent,
    ProductComponent,
    CreditComponent,
    ProductDetailsComponent,
    ClauseComponent,
    RoleComponent,
    ShoumingComponent
  ],
  providers: [
    MemberService
  ],
  imports: [
    CommonModule,
    FormsModule,
    FormsModule,
    RouterModule.forChild(MemberRoutes)
  ],
  exports: [
    MemberMainComponent
  ]
})
export class MemberModule { }
